using System;
using System.IO;

namespace LS.Digitize
{
    public sealed class DoubleSerializer: PrimitiveSerializer<double>
    {

        public DoubleSerializer() : base()
        {
            
        }
        public override void WriteData(IWriter writer, double obj)
        {
            writer.WritePrimitive(obj);
        }

        public override double ReadData(IReader reader)
        {
            return reader.ReadDouble();
        }
    }
}